package com.gjm.demo.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(2)
@Slf4j
@Aspect
//@Component
public class AspectDemo3 {

    @Before("execution(* com.gjm.demo.controller.*.*(..))")
    public void doBefore() {
        log.info("do before3");
    }

    @After("execution(* com.gjm.demo.controller.*.*(..))")
    public void doAfter() {
        log.info("do after3");
    }
}
